import type { TimePickerProps as AntdTimePickerProps } from 'antd';
import { TimePicker as AntdTimePicker } from 'antd';
import React from 'react';
import RangePicker from './RangePicker';

export { en_GB, en_US, zh_CN, zh_TW } from './locale';
export type { Props as TimeRangePickerProps } from './RangePicker';
export type TimePickerProps = AntdTimePickerProps;

function TimePicker(props: TimePickerProps) {
  return <AntdTimePicker {...props} />;
}

TimePicker.RangePicker = RangePicker;

export default TimePicker;
